import * as manage_admin from './controller'

export const baseUrl = '/manage_admin'

export default [{
    method: 'POST',
    route: '/login',
    handlers: [manage_admin.login]
},
 {
    method: 'POST',
    route: '/create',
    handlers: [manage_admin.checkToken,manage_admin.createAdmin]
},
 {
    method: 'POST',
    route: '/update',
    handlers: [manage_admin.checkToken,manage_admin.updateAdmin]
},
 {
    method: 'POST',
    route: '/delete',
    handlers: [manage_admin.checkToken,manage_admin.deleteAdmin]
}
]